import React from "react";
export default function useForceUpdate(){
    const [,update] = React.useState(0)
    return ()=>{
        update(n=>n+1)
    }
} //强制更新函数组件